
<volist name="items_list" id="val">
    <div class="item mt15 masonry_brick">
        <div class="item_t">
            <div class="img tc"> 
            	<a target="_blank" href="{:u('item/index',array('id'=>$val['id']))}" hidefocus="true" rel="nofollow">
                	<img alt="{$val.title}" url="{:base64_encode($val['img'])}" style="display:inline;" class="encode_url">
            	</a> 
                <div class="btns">
                    <a href="javascript:;" class="img_like_btn" iid="{$val.id}" iurl="{:u('item/index',array('id'=>$val['id']))}">
                        <em></em>喜欢
                    </a> 
                    <a href="{:u('item/index',array('id'=>$val['id']))}#items_comments" class="img_comment_btn" target="_blank">
                        <em></em>评论
                    </a>                 
                </div>
         	</div>
            <div class="title">
                <span>{$val.title}</span>
            </div>
        </div>
        <div class="item_b clearfix">
            <div class="items_site fl"> 
            	<img class="fl" width="16" height="16" src="__ROOT__/data/author/32_{$val.items_site.site_logo}" alt="{$val.items_site.name}"> 
                <a href="{:u('item/tao',array('id'=>$val['id']))}" class="gray" target="_blank">来自{$val.items_site.name}分享</a> 
         	</div>
            <div class="items_likes fr"> 
            	<a href="javascript:;" class="like_btn" iid="{$val.id}" iurl="{:u('item/index',array('id'=>$val['id']))}"></a>
                <em class="red bold" id="like_num_{$val.id}">{$val.likes}</em> 
           	</div>
        </div>  
{/*------------------------------------------------------------------------------------------------------*/}
<present name="val['user']">
        <div class="user clearfix">
        	<div class="clearfix">
            	<div class="avatar">
                    <if condition="trim($val['user']['img']) neq ''">
                        <img src="{$val.user.img}" width="32px" height="32px"/>   
                    <else/>
                        <img src="__TMPL__/public/images/avatar-60.png" width="32px" height="32px"/>                     
                    </if>                       
                </div>                
                <div class="user_info">
                	<em>{$val.user.name}</em><br/>
                    <span>分享了{$val.user.share_num}个宝贝</span>
                </div>
            </div>
            <if condition="$val.remark_status eq 1">
			<div class="clearfix remark">
            	{$val.remark}
            </div>
            </if>
        </div>   
</present>         
{/*------------------------------------------------------------------------------------------------------*/}        
        <present name="val['comments']">
        <div class="clearfix comments">
        	<volist name="val['comments']" id="cval">
            	<div class="clearfix citem">
                	<div class="left">
                        <if condition="$cval.user.img">
                            <img src="__TMPL__/public/images/avatar-60.png" width="32" height="32"/>
                        <else/>
                            <img src="{$cval.user.img}" width="32" height="32"/>
                        </if>                        
                    </div>
                    <div class="left r2">
                    	<strong>{$cval.user.name}</strong>
                    	{:substr($cval['info'],0,51)}...
                    </div>
                </div>
            </volist>
        </div>
        </present>
    </div>
</volist>
